package com.tjetc.domian;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Communitycomplaint implements Serializable {

    @Serial
    private static final long serialVersionUID = -5693981264773188954L;
    private Integer complaintid;

    private Integer residentid;

    private Date complaintdate;

    private Date complainttime;

    private String description;

    private String status;
    private Resident resident;
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Communitycomplaint that = (Communitycomplaint) o;
        return getResidentid().equals(that.getResidentid()) &&
               getComplaintdate().equals(that.getComplaintdate()) &&
                   getComplainttime().equals(that.getComplainttime()) &&
                    getDescription().equals(that.getDescription()) &&
                   getStatus().equals(that.getStatus());
    }


}